package ui;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;

import beans.HardDisk;

public class IconPanel extends JPanel{
	ImageIcon fileImage = null;
	public IconPanel(String type){
		this.setLayout(new BorderLayout());
		if(type.equalsIgnoreCase(HardDisk.FILE_TYPE))
			fileImage = new ImageIcon("pic/text.png");
		else
			fileImage = new ImageIcon("pic/folder.png");
		fileImage.setImage(fileImage.getImage().getScaledInstance(30, 30, 200));
		JLabel jl = new JLabel(fileImage);
		this.add(jl,BorderLayout.CENTER);
	}
	
	
}
